package cn.haohaowo.springmv.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
public class TestController {
	@RequestMapping("test/login.do")
	public String testLogin(@RequestParam(value="username")
		String username, String password) {
		if(!"admin".equals(username) || !"admin".equals(password)) {
			return "loginError";
		}
		
		return "loginSuccess";
	}
}
